﻿Public Class KhachHangDT
    Private _maKH As String
    Public Property MaKH
        Get
            Return _maKH
        End Get
        Set(ByVal value)
            _maKH = value
        End Set
    End Property

    Private _ten As String
    Public Property TenKH
        Get
            Return _ten
        End Get
        Set(ByVal value)
            _ten = value
        End Set
    End Property

    Private _dienthoai As String
    Public Property DienThoai
        Get
            Return _dienthoai
        End Get
        Set(ByVal value)
            _dienthoai = value
        End Set
    End Property

    Private _diachi As String
    Public Property DiaChi
        Get
            Return _diachi
        End Get
        Set(ByVal value)
            _diachi = value
        End Set
    End Property

    Private _email As String
    Public Property Email
        Get
            Return _email
        End Get
        Set(ByVal value)
            _email = value
        End Set
    End Property

    Private _id As Integer
    Public Property ID
        Get
            Return _id
        End Get
        Set(ByVal value)
            _id = value
        End Set
    End Property

    'Khoi tao
    Public Sub New(ByVal makh As String, ByVal ten As String, ByVal dienthoai As String, ByVal diachi As String, ByVal email As String, ByVal id As Integer)
        Me._maKH = makh
        Me._ten = ten
        Me._dienthoai = dienthoai
        Me._diachi = diachi
        Me._email = email
        Me._id = id
    End Sub
    Public Sub New(ByVal makh As String, ByVal ten As String, ByVal dienthoai As String, ByVal diachi As String, ByVal email As String)
        Me._maKH = makh
        Me._ten = ten
        Me._dienthoai = dienthoai
        Me._diachi = diachi
        Me._email = email
    End Sub
    Public Sub New(ByVal id As Integer)
        Me._id = id
    End Sub
End Class
